//
//  APR_Info.swift
//  InAppPurchaseManager
//
//  Created by chenfanfang on 2024/7/21.
//

import UIKit

class APR_Client: NSObject {
    
    /// 单例
    static let shared: APR_Client = APR_Client()
    
    /// 是否初始化完毕
    var isSetup: Bool = false;
    
    /// 代理
    weak var delegate: APR_InfoDelegate?
    
    /// 服务器域名
    var domain: String = ""
    
    /// 接口的apiKey，找服务到要
    var apiKey: String = ""
    
    static func setup(domain: String, apiKey: String, delegate: APR_InfoDelegate) {
        APR_Client.shared.domain = domain
        APR_Client.shared.apiKey = apiKey
        APR_Client.shared.delegate = delegate
        APR_Client.shared.isSetup = true
    }

}
